// MD5CompareDlg.h : header file
//

#pragma once
#include "GeneDirMd5.h"
#include "ColorListCtrl.h"

// CMD5CompareDlg dialog
class CMD5CompareDlg : public CDialog
{
// Construction
public:
	CMD5CompareDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MD5COMPARE_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSize(UINT nType, int cx, int cy);

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCompstandard();
	afx_msg void OnBnClickedOpendir();
	afx_msg void OnBnClickedSaveas();

private:
	void	WriteStringToFile(CFile& oFile, CString strText);
	void	ReadFileInfoFromFile(VCT_FILE_INFO& vctFileInfo, CString strFilePath);
	CString	ReadStringFromFile();

	void	SkipOverSpaceChar();

private:
	CGeneDirMd5			m_oGeneDirMd5;
	CColorListCtrl		m_oListCtrl;
	VCT_FILE_INFO		m_vctFileInfo;
	RECT				m_stListMargin;
	CString				m_strBuffer;
	int					m_nPosition;
};
